package com.park.service.impl;

import com.park.bean.Tickets;
import com.park.dao.ITicketsDao;
import com.park.service.ITicketsService;
import com.park.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TicketsServiceImpl implements ITicketsService {
    @Autowired
    ITicketsDao dao;
    @Override
    public List<Tickets> getTickets(Tickets tickets, Page page) {
        return dao.getTickets(tickets,page);
    }

    @Override
    public List<String> getDetail(Tickets tickets) {
        return dao.getDetail(tickets.getId());
    }

    @Override
    public int getCount(Tickets tickets) {
        return dao.getCount(tickets);
    }

    @Override
    public int delTickets(int id) {
        return dao.delTickets(id);
    }

    @Override
    public int postTickets(Tickets tickets) {
        return dao.postTickets(tickets);
    }

    @Override
    public int editTickets(Tickets tickets) {
        return dao.editTickets(tickets);
    }
}
